<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Performs bitwise not negation on a variant</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.variant-neg.html">« variant_neg</a></li>
      <li style="float: right;"><a href="function.variant-or.html">variant_or »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.com.html">COM 函数</a></li>
    <li>Performs bitwise not negation on a variant</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.variant-not" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">variant_not</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">variant_not</span> &mdash; <span class="dc-title">Performs bitwise not negation on a variant</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.variant-not-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>variant_not</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.declarations.html#language.types.declarations.mixed" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="class.variant.html" class="type variant">variant</a></span></div>

  <p class="para rdfs-comment">
   Performs bitwise not negation on <code class="parameter">value</code> and
   returns the result.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.variant-not-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">value</code></dt>

     <dd>

      <p class="para">
       The variant.
      </p>
     </dd>

    
   </dl>

  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
<p class="para">
 对于所有变量运算函数，本函数的参数可以是 PHP
 内置的类型（整数，字符串，浮点数，布尔型或者
 <strong><code>null</code></strong>），或者是一个 COM，VARIANT 或者 DOTNET 类的实例。PHP
 内置类型将会使用和构造<a href="class.variant.html" class="xref">variant</a>类相同的规则转换成变量。COM 和 DOTNET
 对象的值将会取其默认属性并被当成变量值使用。
</p>
<p class="para">
 变量运算函数是同名函数在 COM
 库中的外包；有关此类函数的更多信息参见 MSDN
 库。PHP 函数命名有少许区别，例如 PHP
 中的 <span class="function"><a href="function.variant-add.html" class="function">variant_add()</a></span> 对应于
 MSDN 文档中的 <code class="literal">VarAdd()</code>。
</p>
</p></blockquote>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.variant-not-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the bitwise not negation. If <code class="parameter">value</code> is
   <strong><code>null</code></strong>, the result will also be <strong><code>null</code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.variant-not-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws a <span class="classname"><a href="class.com-exception.html" class="classname">com_exception</a></span> on failure.
  </p>
 </div>


</div></div></div></body></html>